var str='';
<#list list as doc>
<#if doc_index gt 5><#break/></#if>
str+='<li><tt>[${doc.type}] <a href="http://news.17dian.com/hero_news/${doc.did}.html" target="_blank"><#if doc.title.length() gt 15>${doc.title[0..14]}..<#else>${doc.title}</#if> <img src="img/new.gif" alt="" align="absmiddle" /></a></tt> <span>${doc.posttime?date}</span></li>';
</#list>
document.write(str);